﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TimViec.UserControl
{
    public partial class ViecLam : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                LoadData();
            }
        }
        public void LoadData()
        {
            rptVLNBFullTime.DataSource = BLL.TuyenDung.DangTuyenHelper.List_CVNoiBat_LoaiCV(0, 20);
            rptVLNBFullTime.DataBind();
            //
            rptVLNBPartTime.DataSource = BLL.TuyenDung.DangTuyenHelper.List_CVNoiBat_LoaiCV(2, 20);
            rptVLNBPartTime.DataBind();
            //
            rptVLNBIntership.DataSource = BLL.TuyenDung.DangTuyenHelper.List_CVNoiBat_LoaiCV(4, 20);
            rptVLNBIntership.DataBind();
            //
            rptVLMNFullTime.DataSource = BLL.TuyenDung.DangTuyenHelper.List_CVNoiNhat_LoaiCV(0, 20);
            rptVLMNFullTime.DataBind();
            //
            rptVLMNPartTime.DataSource = BLL.TuyenDung.DangTuyenHelper.List_CVNoiNhat_LoaiCV(2, 20);
            rptVLMNPartTime.DataBind();
            //
            rptVLMNIntership.DataSource = BLL.TuyenDung.DangTuyenHelper.List_CVNoiNhat_LoaiCV(4, 20);
            rptVLMNIntership.DataBind();
        }
    }
}